is it better to declare a variable inside or outside a loop - c